package net.oschina.app.ui;

import net.oschina.app.R;
import net.oschina.app.ViewFragment.SynthesizeFragment;
import net.oschina.app.ViewFragment.TrendsFragment;
import net.oschina.app.base.BaseFragment;
import net.oschina.app.fragment.CollectFragment;
import net.oschina.app.fragment.FindFragment;
import net.oschina.app.fragment.FocusesFragment;
import net.oschina.app.fragment.MeFragment;
import net.oschina.app.fragment.MeFragmentView;
import net.oschina.app.fragment.NewsFragment;

/**
 * Created by admin on 2017/7/17.
 */

public enum MeTab {
    SHOUCANG(0, "收藏", R.drawable.tab_icon_new,
            CollectFragment.class),

    GUANGZHU(1, "关注", R.drawable.tab_icon_tweet,
            FocusesFragment.class),

    FANS(2,"粉丝", R.drawable.tab_icon_new,
            FocusesFragment.class),

    NEWS(3,"消息", R.drawable.tab_icon_explore,
            NewsFragment.class);

    private int idx;
    private String resName;//名称的资源id
    private int resIcon;//图标的资源id
    private Class<? extends MeFragmentView> clz;

    private MeTab(int idx,String resName,int resIcon,Class<? extends MeFragmentView> clz){
        this.idx = idx;
        this.resName = resName;//名字
        this.resIcon = resIcon;
        this.clz = clz;
    }

    public void setIdx(int idx) {
        this.idx = idx;
    }

    public int getIdx() {

        return idx;
    }

    public String getResName() {
        return resName;
    }

    public int getResIcon() {
        return resIcon;
    }

    public Class<? extends MeFragmentView> getClz() {
        return clz;
    }


}
